import { PlayerDialog } from "./PlayerDialog";
import { OperateMarryGbox } from "./OperateMarryGbox";
import { GBoxDirection } from "../../../../../com/mui/containers/globalVariable/GBoxDirection";
import { ObjectPool } from "../../../../../com/gengine/utils/pools/ObjectPool";
import { OperateMarryItem } from "./OperateMarryItem";
type int = number;
//class OperateMarryList
    
    export  class OperateMarryList extends PlayerDialog
    {
        constructor()
        {
            super();
            mouseEnabled = false;
            this._bodySprite = new OperateMarryGbox();
            this._bodySprite.mouseEnabled = false;
            this._bodySprite.direction = GBoxDirection.VERTICAL;
            addChild(this._bodySprite);
            return;
        }

        public set maxWidth(arg1: int)
        {
            this._bodySprite.maxWidth = arg1;
            return;
        }

        public set horGap(arg1: int)
        {
            this._bodySprite.horGap = arg1;
            return;
        }

        public /* override */ updateData(arg1: Array<any>): void
        {
            var loc1=0;
            var loc3=null;
            var loc4=null;
            var loc2=arg1.length;
            while (loc1 < loc2) 
            {
                loc3 = arg1[loc1];
                (loc4 = ObjectPool.getObject(OperateMarryItem) as OperateMarryItem).updateData(loc3);
                this._bodySprite.addItem(loc4);
                ++loc1;
            }
            return;
        }

        public /* override */ dispose(): void
        {
            this._bodySprite.disposeChild();
            return;
        }

        public /* override */ get height(): number
        {
            return this._bodySprite.height;
        }

        /* internal */ /* var */_bodySprite: OperateMarryGbox;
    }
